/*
 * @Author: your name
 * @Date: 2021-12-14 20:01:53
 * @LastEditTime: 2021-12-14 20:35:28
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day6vue\my-app\src\api\axios.js
 */

import axios from "axios"

// 获取数据
export const getinvoice=()=>axios.get("/api/invoice")
// 编辑
export const editinvoice=(id)=>axios.get("/api/invoice/"+id)
export const eeinvoice=(params)=>axios.put("/api/invoice/"+params.id,params)
export const addinvoice=(params)=>axios.post("/api/invoice",params)
// 默认
export const defaultinvoice=()=>axios.get("/api/invoice?isdefault=1")
// 删除
export const deleteinvoice=(id)=>axios.delete("/api/invoice/"+id)
